//
//  Piece.h
//  CheckersGame
//
//  Created by Guest User on 11-12-07.
//  Copyright (c) 2011 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>

#import "checkers_logic/checkers.h"
#import "CheckersGameState.h"

@interface Piece : UIControl{
    UIView* boardView;
    CheckersPos pos;
    CheckersGameState* gameState;
    BOOL whitepiece;
}

- (id) initPos: (CheckersPos*) p Colour: (BOOL) w View:(UIView*) ui Size: (int) size Game: (CheckersGameState*) game;


@property (strong, retain) UIView* boardView; 

-(IBAction) onDrag : (id) sender;
-(IBAction) onRelease : (id) sender;
-(IBAction) onCapture : (id) sender;

+(NSArray*) pieceArrayFromBoard  : (CheckersGameState*) game View: (UIView*) ui;

@end
